package com.pan.behavioral.Interpreter.exprerssoin.impl;

import com.pan.behavioral.Interpreter.exprerssoin.TerminalExpression;

public class NumberExpression extends TerminalExpression {

    private Integer number;

    public NumberExpression(String numberString){
        number = Integer.parseInt(numberString);
    }
    @Override
    public Object interpreter() {
        return number;
    }
}
